passing array to function in c programming